package com.wskj.controller;


import com.wskj.entity.Cust;
import com.wskj.service.ICustService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 顽石教育-www.wanshi.com
 * @since 2021-09-02
 */
@RestController
@RequestMapping("/cust")
public class Tianyi_CustController {

    @Autowired
    private ICustService custService;

    @GetMapping("/{id}")
   public Cust findById (@PathVariable String id){
   return custService.getById(id);
   }
}
